Einhugur macOS Bridge plugin.

NSColor.ColorWithSystemEffect Method

Returns a new color object that represents the current color modified to include the specified visual effect.

ColorWithSystemEffect(
   systemEffect as EinhugurMacOSBridge.NSColor.NSColorSystemEffectValues) as EinhugurMacOSBridge.NSColor

Parameters

systemEffect
The visual effect you want to apply to a view or control.

Returns

EinhugurMacOSBridge.NSColor
New NSColor instance representing the old color with the requested system effect.

Remarks

This function did not exists before macOS 10.14 and will return nil on older systems

See Also

NSColor Class